import java.util.Scanner;

public class Dmm {
	public static void main (String[] args) { 
		Scanner sc=new Scanner(System.in);
		  System.out.println("请输入总价");
		  double income=sc.nextDouble();
		  double tax=0;
		  if (income<200) {
				tax=income;
			}else if (income>=1000){
				tax=income*0.8;
			}else if (income>=500 && income<1000){
				tax=income*0.85;
			}else if (income>=200 && income<500){
				tax=income*0.9;
			}else {
				tax=income;
			}
		  System.out.println("商品总金额："+income+"实际应付金额"+tax);
	}
}
